//
//  Util.swift
//  SheYangBigData
//
//  Created by 宋海胜 on 2021/1/12.
//  Copyright © 2021 叁拾叁. All rights reserved.
//

import UIKit

class Util: NSObject {
    
    /// 打电话
    class public func callSomeOne(_ tel: String) {
        let telprompt = "telprompt:\(tel)"
        if let url = URL(string: telprompt) {
            if #available(iOS 10.0, *) {
                UIApplication.shared.open(url, options: [:], completionHandler: nil)//可以写拨打电话的回调
            } else {
                if UIApplication.shared.canOpenURL(url) {
                    UIApplication.shared.openURL(url)
                }
            }
        }
    }
    
    class public func sy_print(_ items: Any..., separator: String = " ", terminator: String = "\n") {
        print("\(#function) in \(#file)/n\(items)")
    }

}

